package com.yi.wood.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author moyi
 * @since 1.0
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "user")
public class User extends BaseEntity{

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "user_code")
    private String userCode;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "password")
    private String password;

    @Column(name = "weixin_name")
    private String weixinName;

    @Column(name = "qq")
    private String qq;

    @Column(name = "email")
    private String email;

    @Column(name = "phone")
    private String phone;

    @Column(name = "sex")
    private String sex;

    @Column(name = "photo")
    private String photo;

    @Column(name = "birthday")
    private Date birthday;

    @Column(name = "id_card")
    private String idCard;

    @Column(name = "last_login_time")
    private Date lastLoginTime;

    @Column(name = "last_login_ip")
    private String lastLoginIp;

    @Column(name = "last_modify_time")
    private Date lastModifyTime;

    @Column(name = "confirm_pass")
    private String confirmPass;

    @Column(name = "description")
    private String description;

    @Column(name = "uuid")
    private String uuid;
}
